public class StringUtils {

    public static void printNumber(String name) {
        if (name == null) {
            System.out.println(0);
            return;
        }

        System.out.println("名字长度是：" + name.length());
    }

    public static int getMaxIndex(String data) {
        return data.length();
    }
}